package online.lmds.sdmanage.main.device.service;

import online.lmds.sdmanage.common.entity.Page;
import online.lmds.sdmanage.common.entity.Result;
import online.lmds.sdmanage.main.device.entity.Device;

/**
 * Created by Brighten Ma on 2017/4/30.
 * 设备Service
 */
public interface DeviceService {


    /**
     * 保存设备
     * @param device
     * @return
     */
    Result save(Device device);

    Result del(Device device);


    /**
     * 通过id 查找设备
     * @param device
     * @return
     */
    Result getById(Device device);

    /**
     * 通过uid查找设备
     * @param device
     * @return
     */
    Result getByUid(Device device);


    Result listByUserId(Device device, Page page);

    Result updateDeviceById(Device device);

    Result updateDeviceByUid(Device device);

    Result updateStatusById(Device device);

    Result updateStatusByUid(Device device);
}
